package ae.pcfc.cldos.online.common.delegate.provider;

import ae.pcfc.cldos.online.common.ConstantsCommon.Steps;
import ae.pcfc.cldos.online.common.delegate.BaseDelegate;
import ae.pcfc.cldos.online.common.delegate.EmploymentVisaDelegate;
import ae.pcfc.cldos.online.common.exception.BadAppException;
import ae.pcfc.cldos.online.common.facade.EmploymentVisaFacade;
import ae.pcfc.cldos.online.common.vo.AppSaveResponseVO;
import ae.pcfc.cldos.online.common.vo.EmployeVisaVO;
import ae.pcfc.cldos.online.common.vo.UserVO;

/**
 * 
 * @author arosa
 *
 */
public class EmploymentVisaDelegateImpl extends BaseDelegate implements EmploymentVisaDelegate {

	public AppSaveResponseVO submit(EmployeVisaVO employeVisaVO)  throws Exception {
		return getServiceLocator().getFacadeService(EmploymentVisaFacade.class).submit(employeVisaVO);
	}
	
	public AppSaveResponseVO reSubmit(EmployeVisaVO employeVisaVO, String appId)  throws Exception{
		return getServiceLocator().getFacadeService(EmploymentVisaFacade.class).reSubmit(employeVisaVO, appId);
	}
	
	public EmployeVisaVO getEmployeeVisaDetailByAppId(String applicationId, UserVO userVO, Steps step) throws BadAppException{
		return getServiceLocator().getFacadeService(EmploymentVisaFacade.class).getEmployeeVisaDetailByAppId(applicationId, userVO, step);
	}
	
	public EmployeVisaVO getEmployeeVisaViewDtls(String applicationId, UserVO userVO, Steps step) throws BadAppException{
		return getServiceLocator().getFacadeService(EmploymentVisaFacade.class).getEmployeeVisaViewDtls(applicationId, userVO, step);
	}

}
